<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>项目课题列表</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
    <link rel="stylesheet" href="../css/vip.css" type="text/css">
    <SCRIPT language=JavaScript src="../js/jquery.js"></SCRIPT>
  <SCRIPT language=JavaScript src="../js/FoshanRen.js"></SCRIPT>
  <link rel="stylesheet" type="text/css" href="../js/extjs/resources/css/ext-all.css"/>
<script type="text/javascript" charset="utf-8" src="../js/extjs/adapter/ext/ext-base.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/extjs/ext-all.js"></script>
  <script language="JavaScript">
	function topage(page){
	var s="<s:url action='project_query' namespace='/admin'/>?projectQuery.projectNo=<s:property value='projectQuery.projectNo'/>"
	+"&projectQuery.projectName=<s:property value='projectQuery.projectName'/>"
	+"&projectQuery.reposiblePerson=<s:property value='projectQuery.reposiblePerson'/>"
	+"&projectQuery.personInCharge=<s:property value='projectQuery.personInCharge'/>"
	+"&projectQuery.state=<s:property value='projectQuery.state'/>"
	+"&page="+page;
	javascript:window.location.href=s;
	}
	function deleteItem(id){
	 if(confirm("你确定要删除")){
	    $.get("projectManage_delete.action?project.id="+id,
	    function(data){
	    $("#"+id).remove();
	    alert(data);
	    });
      }
    }
  </script>
<script type="text/javascript"charset="utf-8">
function test(){
Ext.Ajax.request({
url: "project_test.action",
success: function(response, config){
alert(config.url + "," + config.method);
Ext.MessageBox.alert("result", response.responseText);
},
failure: function(){
Ext.MessageBox.alert("result", "请求失败");
},
method: "post",
params: {name: "李赞红"}
});
}
</script>
  </head>
  
  <body>
  <s:form action="project_query" namespace="/admin" method="post">
<s:hidden name="typeid"/>
 <table width="98%" border="0" cellspacing="1" cellpadding="3" align="center">
    <tr bgcolor="6f8ac4"> 
       <td colspan="2" ><font color="#FFFFFF">查询项目课题（请选择其中的一个或多个条件进行查询）：</font></td>
    </tr>
    <tr > 
      <td> <div align="right">项目编号  ：</div></td>
      <td><s:textfield name="projectQuery.projectNo" size="30" maxlength="40"/></td>
      <td> <div align="right">项目名称 ：</div></td>
      <td><s:textfield name="projectQuery.projectName" size="50" maxlength="40"/></td>
      <td> <div align="right">负责人 ：</div></td>
      <td><s:textfield name="projectQuery.reposiblePerson" size="20" maxlength="20"/></td>
    </tr>
    <tr > 
      <td> <div align="right">责任人 ：</div></td>
      <td><s:textfield name="projectQuery.personInCharge" size="20" maxlength="20"/></td>
      <td> <div align="right">项目状态  ：</div></td>
      <td> 
      <s:select name="projectQuery.state" list="#{'申请中':'申请中','进行中':'进行中','已结题':'已结题'}" headerValue="---请选择项目状态---" headerKey="">
      </s:select>
      </td>
    </tr>
    <tr > 
      <td colspan="2"> <div align="center"> 
          <input type="submit" name="edit" value="查询" class="frm_btn">
          &nbsp;&nbsp;<input type="button" name="Button" value="返回" class="frm_btn" onclick="javascript:history.back()">
        </div></td>
    </tr>
  </table>
</s:form>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr ><td colspan="10"  bgcolor="6f8ac4" align="right">
    	<%@ include file="/WEB-INF/page/shared/fenye.jsp" %>
   </td></tr>
    <tr>
      <td width="10%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">项目课题编号</font></div></td>
      <td width="20%" bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">课题名称</font></div></td>
	  <td width="10%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">负责人</font></div></td>
	  <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">责任人</font></div></td>
	  <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">项目开始时间</font></div></td>
	  <td width=“10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">项目结束时间</font></div></td>
      <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">项目的状态</font></div></td>
       <td width="10%" bgcolor="6f8ac4"><div align="center"><font color="#FFFFFF">详细信息查询</font></div></td>
      <td width="5%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">修改</font></div></td>
      <td width="5%" nowrap bgcolor="6f8ac4"> <div align="center"><font color="#FFFFFF">删除</font></div></td>
    </tr>
    <s:iterator value="#pageView.records">
    <tr id="<s:property value='id'/>">
      <td bgcolor="f5f5f5"> <div align="center"><s:property value="projectNo"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="projectName"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="reposiblePerson"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="personInCharge"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:date name="startTime" nice="false" format="yyyy-MM-dd"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:date name="endTime" nice="false" format="yyyy-MM-dd"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><s:property value="state"/></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="projectManage_detailQuery" namespace="/admin"><s:param name="project.id" value="%{id}"></s:param></s:url>'>项目详细信息</a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><a href='<s:url action="projectManage_edit" namespace="/admin"><s:param name="project.id" value="%{id}"></s:param></s:url>'>
	  <img src="../images/edit.gif" width="15" height="16" border="0"></a></div></td>
	  <td bgcolor="f5f5f5"> <div align="center"><input type="button" class="frm_btn" value="删除" onClick="deleteItem(<s:property value='id'/>)"/></div></td> 
	</tr>
    </s:iterator>
  </table>
  </body>
</html>
